<?php
namespace App\Models;

use App\Models\Profile;
use Illuminate\Database\Eloquent\Model;

class AccessLog extends Model {

	protected $table = 'access_logs';
	public $timestamps = false;

	public function getUserRealName() {
		return Profile::where('user_id', $this->user_id)->pluck('realname');
	}

}
